package eg;

import org.springframework.beans.factory.annotation.Configurable;

import fit.RowFixture;

@Configurable
public class ListPlayers extends RowFixture {

    private PlayerList playerList;

    public void setPlayerList(PlayerList playerList) {
        this.playerList = playerList;
    }

    public Object[] query() throws Exception {
        return playerList.getPlayers();
    }

    public Class getTargetClass() {
        return Player.class;
    }

}
